
pub fn main(){
    println!("{} days", 31);

    println!("{0}, this is {1}, {1}, this is {0}", "Alice", "Bob");

    println!("{subject} {verb} {object}", 
        object = "the lazy dog",
        subject = "the quick brown fox", 
        verb = "jump over");

    println!("Base 10 repr:                 {}", 69420);
    println!("Base 2 (binary)repr:          {:b}", 69420);
    println!("Base 8 (octal)repr:           {:o}", 69420);
    println!("Base 16 (hexadecimal)repr:    {:x}", 69420);
    println!("Base 16 (hexadecimal)repr:    {:X}", 69420);


    println!("align right {number:>5}", number =1 );
    println!("pad number: {number:0>5}", number =1 );
    println!("named arguments for width: {number:0>width$}", number = 1, width=5);
    println!("My name is {0}, {1} {0}", "Bond", "James");


    #[allow(dead_code)]
    struct Structure(i32);

    println!("This struct `{{}}' won't print...");
    //println!("This struct `{}' won't print...", Structure(3));

    let number: f64 = 1.0;
    let width: usize = 6;
    println!("{number:>width$}");

}

